/*
 * @SuperTV All Rights Reserved
 */

package com.huyn.baseframework.model;

import com.huyn.baseframework.utils.StringUtils;

import java.io.Serializable;

/**
 * Created by huyaonan on 15/10/4.
 */
public class BaseModel implements Serializable {

    public String code;
    public String errormsg;

    public boolean success() {
        return "0000".equalsIgnoreCase(code) || StringUtils.isBlank(code);
    }

}
